<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
</head>

<body>
  <div id="root">
    <p>msg消息是:{{msg}}</p>
    <p>
      <span>用户名是:{{user.name}}</span>
    </p>
    <input type="text" v-model="msg" />
    <input type="text" v-model="user.name" />
  </div>
</body>
<!-- <script src="./vue2.js"></script> -->
<!-- <script src="./01-数据代理.js"></script> -->
<!-- <script src="./02-数据劫持.js"></script> -->
<!-- <script src="./03-模板解析.js"></script> -->
<script src="./03-Dep和Watcher.js"></script>
<script>
  let vm = new Vue({
    el: "#root",
    // el:document.querySelector('#root'),
    data: {
      msg: "hello atguigu",
      user: {
        name: "tom",
        address: ["北京", "深圳", "上海"],
      },
    },
  });
  console.log(vm);
</script>

</html>